From 933f5440b405c50c7722411eaebe2136e262f3eb Mon Sep 17 00:00:00 2001 From: "emellor@leeni.uk.xensource.com" Date: Wed, 14 Dec 2005 11:56:25 +0000 Subject: [PATCH] Added mkdir -p $XENDOMAINS_SAVE, to ensure that the directory exists before trying to save into it. Signed-off-by: Ewan Mellor --- tools/examples/init.d/xendomains | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/examples/init.d/xendomains b/tools/examples/init.d/xendomains index 3e8155fcd9..358aac78df 100644 --- a/tools/examples/init.d/xendomains +++ b/tools/examples/init.d/xendomains @@ -347,6 +347,7 @@ stop() echo -n "(save)" watchdog_xm save & WDOG_PID=$! + mkdir -p "$XENDOMAINS_SAVE" xm save $id $XENDOMAINS_SAVE/$name if test $? -ne 0; then rc_failed $? -- 2.30.2